package cn.bdqn.mapper;

import cn.bdqn.pojo.Ebook_entry;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface Ebook_entryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ebook_entry record);

    int insertSelective(Ebook_entry record);

    Ebook_entry selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ebook_entry record);

    int updateByPrimaryKey(Ebook_entry record);

    //删除
    public int sc(int userid);

    //添加
    public int tj(Ebook_entry ebookEntry);

    //修改
    public int xg(Ebook_entry ebookEntry);

    public int totalCountByCategoryId(@Param("cateId") Integer categoryid,@Param("startNum") Integer startNum,@Param("pageSize") Integer pageSize);

    public List<Ebook_entry> querybookEntryList(@Param("categoryid") Integer categoryid,@Param("startNum") Integer startNum,@Param("pageSize") Integer pageSize);
}